package com.cyzy.service;

import com.cyzy.dto.Result;
import com.cyzy.pojo.*;

import java.util.List;

/**
 * @author zxw
 * @create 2025-05-22 下午4:26
 */

public interface CheckService {
    //------------------------------------------
    //               秒杀课程审核
    //------------------------------------------
    Result selectAllSeckillInfo(GetSeckillCheck getSeckillCheck);

    int updateSeckill(String seckillId, String status, String rejectReason);

    Seckill selectCourseId(String seckillId);

    void insertSeckill(List<ActivateCode> codeList);

    //获取邮件模版
    EmailTemplates getContent(String templateName);

    //获取发布秒杀人的邮箱
    String selectUserEmail(long seckillId);

    //------------------------------------------
    //               活动审核
    //------------------------------------------
    Result selectAllActivityInfo(GetActivityCheck getActivityCheck);

    Activity selectActivity(String activityId);

    String selectActivityUserEmail(long activityId);

    int updateActivity(String activityId, String status, String rejectReason);


    //------------------------------------------
    //               广告审核
    //------------------------------------------
    Result selectAllAdvertInfo(GetAdvertCheck getAdvertCheck);

    Advert selectAdvertById(String advertId);

    String selectAdvertUserEmail(long advertId);

    int updateAdvert(String advertId, String status, String rejectReason);
}
